package com.cqc.service.impl;

import com.cqc.service.UserService;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import java.util.concurrent.TimeUnit;

/**
 * @author cui
 * @date 2025/3/21 22:17
 * @description
 **/
@Service
public class UserServiceImpl implements UserService {

    @Override
    public void sync() throws InterruptedException {
        TimeUnit.MINUTES.sleep(1L);
    }


    @Async
    @Override
    public void async() throws InterruptedException {
        TimeUnit.MINUTES.sleep(1L);
    }
}
